home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 5 / PIXELWOR / ABOUT_CP.IX1 next >
Text File  |  1992-01-01  |  4KB  |  86 lines

  1.  
  2. CPixelWorldPane, Version 1.0                            (SUPERCLASS = CBitMapPane)
  3. ____________________________________________________________
  4.  
  5.     Ñ    Description
  6.         
  7.         The CPixelWorldPane class is a subclass of CBitMapPane (THINK Class 
  8.         Library 1.1) which uses a CPixelWorld to maintain a pane based on a 
  9.         color offscreen drawing environment.  An offscreen color graphics 
  10.         device (GDevice) and an offscreen color graphics port (CGrafPort) are 
  11.         used to maintain the offscreen world.  This implementation supports 
  12.         standard pixel depths of 1,2,4 and 8 bits.  Pixel depths of 16 and 32 
  13.         are not supported since the current implementation of CPixelWorld 
  14.         does not rely on 32-Bit QuickDraw features.  
  15.         
  16.         After creating an instance of the CPixelWorldPane class, initilaze the 
  17.         pane by calling the IPixelWorldPane() method with the same parameters 
  18.         that you normally pass to IPane() to initialize a CPane object, plus an 
  19.         additional two parameters:
  20.  
  21.     (1)  LongRect *aBounds
  22.  
  23.           This is the bounds rectangle for the offscreen world.
  24.  
  25.     (2)  CPixelWorld *aPixelWorld
  26.  
  27.           This is the pixel world which will be used to maintain the 
  28.           offscreen image.  You can create the pixel world yourself with
  29.           your own image and color table, or have a blank world created 
  30.           for you by passing NULL.  If you pass NULL, the pixel depth of the 
  31.           blank world will be set to the maximum pixel depth of all screens
  32.           that are currently active on your system.  A default color table 
  33.           for that pixel depth will be used for the blank offscreen world.  
  34.                 
  35.         The GetPixelWorld() method returns a reference to the CPixelWorld
  36.         associated with the CPixelWorldPane.  The SetPixelWorld() method
  37.         allows you to assign a CPixelWorld to a CPixelWorldPane.  Before you
  38.         change the CPixelWorld associated with a CPixelWorldPane, call
  39.         GetPixelWorld() and dispose of the CPixelWorld currently associated
  40.         with the pane.  
  41.         
  42.         The Draw() and Dispose() methods of the CBitMapPane class have been 
  43.         overridden.  Use these methods as you would the corresponding methods 
  44.         of the superclass.  
  45.         
  46.     Ñ    Version History
  47.         
  48.          _________________________________________________
  49.              Release Version:           1.0
  50.          Release Date:                January 1, 1992
  51.          
  52.            Implemented By:            Vincent R. Vann, Jr.
  53.                                               1901 Brickell Ave, B-410
  54.                                               Miami, Florida  33129  USA
  55.              
  56.             Compuserve Address:       76530,1242
  57.              Internet Address:          vvann@umbio.med.miami.edu
  58.                                                (129.171.65.204)
  59.          _________________________________________________
  60.   
  61.     Ñ    License Agreement
  62.         
  63.         All portions of this source code are property of Vincent R. Vann, Jr.
  64.         I, Vincent R. Vann, Jr., grant you the right to freely distribute this 
  65.         source code and to use all or part of this source code in all software  
  66.         including commercial, freeware, shareware and private applications.  
  67.         However, all software that uses any part of or all of this source code 
  68.         must display a copyright notice indicating that either all of or 
  69.         portions of this source code are used in the software.  I also grant 
  70.         you permission to alter and make improvements to this source code, but 
  71.         only if all modifications are returned to me by whatever means are 
  72.         available, either in written or electronic form.  You must also accept 
  73.         that I retain the right to include any part of your modifications or 
  74.         all of your modifications in future releases of this source code.  The 
  75.         description and version history sections above may be ammended for 
  76.         documentation purposes.  This license agreement and the copyright 
  77.         notice below must be maintained intact and must be included with all 
  78.         distributions of this source code at all times.  
  79.         
  80.         This implementation is based in part on material copyrighted by Apple 
  81.         Computer, Inc. and Symantec Corporation.  
  82.         
  83.         Copyright ⌐ 1992 Vincent R. Vann, Jr.  All rights reserved.  
  84. ____________________________________________________________
  85.  
  86.